#ifndef ENCODE_H
#define ENCODE_H

#include <QObject>

class G711Encoder
{
public:
    // Function to encode a single PCM sample to G.711 μ-law
    static uint8_t encodeMuLaw(int16_t pcm_val);

    // Function to encode a single PCM sample to G.711 A-law
    static uint8_t encodeALaw(int16_t pcm_val);

};

#endif // ENCODE_H
